package ldk.app.kotlinweibo.apis

import io.reactivex.Observable
import ldk.app.kotlinweibo.apis.beans.UID
import ldk.app.kotlinweibo.apis.beans.User
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * Created by ke on 17-6-27.
 */
interface UsersAPI {

    @GET("users/show.json")
    fun showByUid(@Query("uid") uid: Long): Observable<User>

    @GET("users/show.json")
    fun showByScreenName(@Query("screen_name") screenName: String): Observable<User>

    @GET("account/get_uid.json")
    fun getMyUId():Observable<UID>
}